


export const msg =(state="are  you  ok ?",action)=>{
    const{type,payload}=action;
    switch(type){
        case "changeMsg":
        return payload;  //解构 返回新的state
        break;


        default:
            return state
            break;
    }
  }